package cn.hinglo.baseservice.service;

import cn.hinglo.common.entity.Result;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * @author HingLo
 */
@Service
public interface PermissionFeignService {

    /**
     * 获取用户的权限信息
     *
     * @param userId 用户id
     * @return 返回权限集合
     */
    @RequestMapping(value = "/u/permissionList", method = RequestMethod.GET)
    Result<List<String>> getUserPermission(@RequestParam("userId") String userId);
}
